/*
#include<stdio.h>
struct student 
{
	int ID;
	char name[20];
	int age;
	int score;
}stu[4];
int main()
{
	for(int i=0;i<4;i++)
	   scanf("%d %s %d %d",&stu[i].ID,&stu[i].name,&stu[i].age,&stu[i].score);
	int*p=&stu[0].score;
	int q=0;
	for(int i=1;i<4;i++)
	{
		int*tmp=NULL;
		if(*p<stu[i].score)
		{
			tmp=p;
			p=&stu[i].score;
			q=i;
		}
	}
	printf("%d %s %d %d",stu[q].ID,stu[q].name,stu[q].age,stu[q].score);
	return 0;
}
*/
/*
#include<stdio.h>
struct staff
{
	int num;
	char name;
	char sex;
}stu[5];
int main()
{
	for(int i=0;i<5;i++)
		   scanf("%d %s %c",&stu[i].num,&stu[i].name,&stu[i].sex);
	int*p=&stu[0].num;
	int q=0;
	for(int i=1;i<5;i++)
	{
		int*tmp=NULL;
		if(*p<stu[i].num)
		{
			tmp=p;
			p=&stu[i].num;
			q=i;
		}
	}
	printf("%d %s %c",stu[q].num,stu[q].name,stu[q].sex);
	return 0;
}
*/
/*
#include<stdio.h>
struct staff
{
	int num;
	char name[20];
	char gender;
};
int main()
{
	int i,j;
	struct staff stu[5]={{1001,"zhang",'M'},{1007,"wang",'F'},{1010,"sun",'F'},{1002,"li",'M'},{1005,"ji",'F'}};
	struct staff tmp;
	for(int i=0;i<4;i++)
	{	
	  for(j=0;j<4-i;j++)
	  {
	  	if(stu[j].num<stu[j+1].num)
	  	{
	  		
		  	tmp=stu[j];
		  	stu[j]=stu[j+1];
		  	stu[j+1]=tmp;
		}
	  }
	}
	for(i=0;i<5;i++)
	{
		printf("%6d %8s %c\n",stu[i].num,stu[i].name,stu[i].gender);
	}
	return 0;
}
*/




